﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using WebConversion.Module.MemberShip;

namespace WebConversion.Test.DataTest
{
    [TestClass]
    public class UserProfileTest : TestBase
    {
        [TestMethod]
        public void CreateUserTest()
        {
            var userProfile =
                new UserProfile
                    {
                        UserId = 0,
                        FirstName = "Jason",
                        LastName = "Li",
                        EMail = "JasonLiSZ@hotmail.com",
                        Password = "123456",
                        Address = "ShenZhen"
                    };

            userProfile.Create();
        }

        [TestMethod]
        public void ValidUserTest()
        {
            const string eMail = "JasonLiSZ@hotmail.com";
            const string password = "123456";

            var result = UserProfile.ValidUser(eMail, password);
        }

        [TestMethod]
        public void TestMD5Mehotd()
        {
            const string password = "123456";
            var result = UserProfile.GetMD5Hash(password);

        }
    }
}
